/*
 * Created on Feb 10, 2005
 * Created by dfhuynh
 */
package edu.mit.simile.longwell.query;

import java.util.List;
import java.util.Set;

/**
 * @author dfhuynh
 */
public interface IIndexer {
	static public class Entry {
		final public String	m_label;
		final public int	m_pageIndex;
		final public int	m_count;
		
		public Entry(String label, int pageIndex, int count) {
			m_label = label;
			m_pageIndex = pageIndex;
			m_count = count;
		}
		
		public String getLabel() {
			return m_label;
		}
		
		public int getPageIndex() {
			return m_pageIndex;
		}
		
		public int getCount() {
			return m_count;
		}
	}
	
	/**
	 * @param objects
	 * @param orders
	 * @param itemsPerPage
	 * @param locale
	 * @param fresh
	 * @return
	 */
	public List index(
		Set objects, List sortedObjects, List orders, int itemsPerPage, 
		String locale, boolean fresh) throws QueryException ;
}
